﻿@model SoftHotel.Models.DocCompraModel

@{
    ViewBag.Title = "Index";
}

@using (Html.BeginForm())
{ 
    <h1><strong>Documento de Compra</strong></h1>
        <h2>
        Agregar<hr align="left" width="80" noshade="noshade" />   
    </h2>
    <br />
    <input type="submit" value="Agregar" name="button" style = " margin-left : 100px;"/>  	
        <br /> 
        <h2>
        Buscar<hr align="left" width="80" noshade="noshade" />   
    </h2>
    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 450px; margin-bottom: 0px;">
	<tbody>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">Código DC </td>
		<td style="width: 220px;">		
        @Html.TextBoxFor(Model => Model.idDocCompra)
		</td>
	</tr>
	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;">Código Proveedor</td>
		<td style="width: 220px;">
		@Html.TextBoxFor(Model => Model.idProveedor)
		</td>		
	</tr>

	<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">Moneda</td>	
		<td>
		@Html.DropDownListFor(Model => Model.divisa, new[]{
                    new SelectListItem() {Text = "Soles (S/.)", Value = "Soles"},
                    new SelectListItem() {Text = "Dolares ($)", Value = "Dolares"}
                    }, "Seleccione")
		</td>	
	</tr>
	@*<tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">Forma de Pago</td>	
		<td>
		@Html.DropDownListFor(Model => Model.formapago, new[]{
                        new SelectListItem() {Text = "Contado C/E Solo Efectivo", Value = "Contado"},
                        new SelectListItem() {Text = "Nota de Credito", Value = "Credito"},
                        new SelectListItem() {Text = "Fiado", Value = "Fiado"}
                    }, "Seleccione")
		</td>	
	</tr>
    <tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold;">Estado</td>	
		<td>
		@Html.DropDownListFor(Model => Model.estado, new[]{
                        new SelectListItem() {Text = "Aprobado", Value = "Aprobado"},
                        new SelectListItem() {Text = "Rechazado", Value = "Rechazado"},
                        new SelectListItem() {Text = "Por Aprobar", Value = "Xaprobar"},
                        new SelectListItem() {Text = "Anulado", Value = "Anulado"}
                    }, "Seleccione")
		</td>	
	</tr>*@

</tbody>
</table>
<br />
<input value="Buscar" type="submit" name = "button" style = " margin-left : 100px;"/>
}   
<br />
<br />